package com.citywy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author taray
 * @since 2024-01-19
 */
@ApiModel(value = "Menu对象", description = "")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键,自增长")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("栏目名称")
    private String name;

    @ApiModelProperty("栏目标识,唯一,构成访问链接一部分")
    private String code;

    @ApiModelProperty("栏目级别,1=一级栏目,2=二级栏目,3=三级栏目")
    private Integer level;

    @ApiModelProperty("使用范围,以,隔开,（资讯：N 知识S...)")
    private String scope;

    @ApiModelProperty("备注说明")
    private String note;

    @ApiModelProperty("父级主键,外键引用本身")
    private Integer pid;

    @ApiModelProperty("启用状态,true=启用,flase=禁用,默认true")
    private Boolean state;

    @ApiModelProperty("排序号")
    private Integer sort;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "Menu{" +
            "id = " + id +
            ", name = " + name +
            ", code = " + code +
            ", level = " + level +
            ", scope = " + scope +
            ", note = " + note +
            ", pid = " + pid +
            ", state = " + state +
            ", sort = " + sort +
        "}";
    }
}
